count the cost
count the cost (of something)
to feel the bad effects of a mistake, an accident, etc.
The town is now counting the cost of its failure to provide adequate flood protection.